package com.github.pig.admin.model.repair;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 报修记录表
 * </p>
 *
 * @author lxm
 * @since 2018-06-27
 */
@TableName("repair_record")
public class RepairRecord extends Model<RepairRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId(value = "id",type = IdType.UUID)
    private String id;
    /**
     * 报修时间
     */
    @TableField("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss" )
    private Date startTime;
    /**
     * 结束时间
     */
    @TableField("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss" )
    private Date endTime;
    /**
     * 报修人
     */
    @TableField("lift_user")
    private String liftUser;
    @TableField("lift_user_name")
    private String liftUserName;
    /**
     * 报修状态
     */
    private String status;
    @TableField(exist = false)
    private String statusName;
    /**
     * 图片路径
     */
    @TableField("img_path")
    private String imgPath;
    /**
     * 问题描述
     */
    private String description;
    /**
     * 维修人员
     */
    @TableField("repair_user")
    private String repairUser;
    @TableField(exist = false)
    private String repairUserName;
    /**
     * 维修结果
     */
    @TableField("repair_result")
    private String repairResult;
    /**
     * 损坏设备位置
     */
    private String position;
    /**
     * 受理时间
     */
    @TableField("accept_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss" )
    private Date acceptTime;
    /**
     * 受理人
     */
    @TableField("accept_user")
    private String acceptUser;
    @TableField(exist = false)
    private String acceptUserName;
    /**
     * 备注
     */
    private String bz;
    /**
     * 维修结果图片
     */
    @TableField("result_img")
    private String resultImg;
    /**
     * 操作描述
     */
    @TableField("operation_description")
    private String operationDescription;
    /**
     * 报修人地所属房屋
     */
    @TableField("house_id")
    private String houseId;
    @TableField(exist = false)
    private String houseName;
    @TableField("unit_id")
    private String unitId;
    @TableField(exist = false)
    private String unitName;
    @TableField("community_id")
    private String communityId;
    @TableField(exist = false)
    private String communityName;
    @TableField("building_id")
    private String buildingId;
    @TableField(exist = false)
    private String buildingName;
    /**
     * 删除标识
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 满意度
     */
    @TableField("appraise_result")
    private String appraiseResult;
    @TableField(exist = false)
    private String appraiseResultName;
    @TableField(exist = false)
    private String wsls;//未受理记录数
    @TableField(exist = false)
    private String sls;//受理记录数
    @TableField(exist = false)
    private String pds;//派单数
    @TableField(exist = false)
    private String wxs;//维修数
    @TableField(exist = false)
    private String pjs;//评价数
    @TableField(exist = false)
    private String zs;//总数
    @TableField(exist = false)
    private String repairTime;
    /**
     * 评价内容描述
     */
    private String appraise;

    /**
     * 报修事项
     */
    @TableField("repair_item")
    private String repairItem;
    @TableField(exist = false)
    private String repairItemName;

    public String getRepairItem() {
        return repairItem;
    }

    public void setRepairItem(String repairItem) {
        this.repairItem = repairItem;
    }

    public String getRepairItemName() {
        return repairItemName;
    }

    public void setRepairItemName(String repairItemName) {
        this.repairItemName = repairItemName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getLiftUser() {
        return liftUser;
    }

    public void setLiftUser(String liftUser) {
        this.liftUser = liftUser;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRepairUser() {
        return repairUser;
    }

    public void setRepairUser(String repairUser) {
        this.repairUser = repairUser;
    }

    public String getRepairResult() {
        return repairResult;
    }

    public void setRepairResult(String repairResult) {
        this.repairResult = repairResult;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Date getAcceptTime() {
        return acceptTime;
    }

    public void setAcceptTime(Date acceptTime) {
        this.acceptTime = acceptTime;
    }

    public String getAcceptUser() {
        return acceptUser;
    }

    public void setAcceptUser(String acceptUser) {
        this.acceptUser = acceptUser;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public String getResultImg() {
        return resultImg;
    }

    public void setResultImg(String resultImg) {
        this.resultImg = resultImg;
    }

    public String getOperationDescription() {
        return operationDescription;
    }

    public void setOperationDescription(String operationDescription) {
        this.operationDescription = operationDescription;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getAppraiseResult() {
        return appraiseResult;
    }

    public void setAppraiseResult(String appraiseResult) {
        this.appraiseResult = appraiseResult;
    }

    public String getAppraise() {
        return appraise;
    }

    public void setAppraise(String appraise) {
        this.appraise = appraise;
    }

    public String getLiftUserName() {
        return liftUserName;
    }

    public void setLiftUserName(String liftUserName) {
        this.liftUserName = liftUserName;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getRepairUserName() {
        return repairUserName;
    }

    public void setRepairUserName(String repairUserName) {
        this.repairUserName = repairUserName;
    }

    public String getAcceptUserName() {
        return acceptUserName;
    }

    public void setAcceptUserName(String acceptUserName) {
        this.acceptUserName = acceptUserName;
    }

    public String getAppraiseResultName() {
        return appraiseResultName;
    }

    public void setAppraiseResultName(String appraiseResultName) {
        this.appraiseResultName = appraiseResultName;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(String buildingId) {
        this.buildingId = buildingId;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getWsls() {
        return wsls;
    }

    public void setWsls(String wsls) {
        this.wsls = wsls;
    }

    public String getSls() {
        return sls;
    }

    public void setSls(String sls) {
        this.sls = sls;
    }

    public String getPds() {
        return pds;
    }

    public void setPds(String pds) {
        this.pds = pds;
    }

    public String getWxs() {
        return wxs;
    }

    public void setWxs(String wxs) {
        this.wxs = wxs;
    }

    public String getPjs() {
        return pjs;
    }

    public void setPjs(String pjs) {
        this.pjs = pjs;
    }

    public String getZs() {
        return zs;
    }

    public void setZs(String zs) {
        this.zs = zs;
    }

    public String getRepairTime() {
        return repairTime;
    }

    public void setRepairTime(String repairTime) {
        this.repairTime = repairTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "RepairRecord{" +
        ", id=" + id +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", liftUser=" + liftUser +
        ", status=" + status +
        ", imgPath=" + imgPath +
        ", description=" + description +
        ", repairUser=" + repairUser +
        ", repairResult=" + repairResult +
        ", position=" + position +
        ", acceptTime=" + acceptTime +
        ", acceptUser=" + acceptUser +
        ", bz=" + bz +
        ", resultImg=" + resultImg +
        ", operationDescription=" + operationDescription +
        ", delFlag=" + delFlag +
        ", appraiseResult=" + appraiseResult +
        ", appraise=" + appraise +
        "}";
    }
}
